/*
 * @Author: sxb
 * @Email: sxb@mail.com
 * @Date: 2020-05-29 11:37:37
 * @Descripttion: 采集设备管理
 */ 
import request from '@/utils/request'

export function apiPostEquipment(data){
    return new Promise((resolve, reject) => {
        request.post('api/equipment', data).then(res => {
            resolve(res);
        }).catch(error => {
            reject(error)
        })
    })
}

export function apiDelEquipment(data){
    return new Promise((resolve, reject) => {
        request.delete('api/equipment', {data:data}).then(res => {
            resolve(res);
        }).catch(error => {
            reject(error)
        })
    })
}

export function apiPutEquipment(data){
    return new Promise((resolve, reject) => {
        request.put('api/equipment', data).then(res => {
            resolve(res);
        }).catch(error => {
            reject(error)
        })
    })
}